/*
 * TitleStyle.java
 *
 * Copyright(c) 2011
 * Michael Kroez
 * kroez@studiorutton.de
 *
 * All rights reserved.
 *
 * $Id$
 * 
 */

package de.studiorutton.colorschemes;

import android.content.res.Resources;
import android.graphics.drawable.Drawable;

public abstract class TitleStyle implements ITitleStyle {
	protected Resources res;
	protected Buttonizer buttons;
	
	public TitleStyle( Resources res ) {
		this.res = res;
		createButtons();
	}
	
	public void createButtons() {
		buttons = new Buttonizer( Buttonizer.STYLE_DEFAULT );
	}
	
	public Buttonizer getButtons() {
		return buttons;
	}

	public Drawable getSearchBackground() {
		return res.getDrawable(getBackgroundDark());
	}

	public Drawable getUpdateTitleBackground() {
		return res.getDrawable(getBackgroundDark());
	}

	public int getUpdateTitleTextcolor() {
		return getTextColorLight();
	}
	
	public Drawable getAboutTitleBackground() {
		return res.getDrawable(getBackgroundDark());
	}
	
	public int getAboutTitleTextcolor() {
		return getTextColorLight();
	}

	public abstract int getBackgroundDark();
	public abstract int getTextColorLight();

}
